<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>GrabbingBox Demo - simple image</title>
  <link rel="stylesheet" href="../../dist/vue2/index.css" ></style>
  <style>
    html,
    body,
    #app {
      width: 100%;
      height: 100%;
      overflow: hidden;
      margin: 0;
      padding: 0;
    }
  </style>
  <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>

  <!-- 引入样式 -->
<link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
<!-- 引入组件库 -->
<script src="https://unpkg.com/element-ui/lib/index.js"></script>
<!-- <script type="module" src="https://unpkg.com/vue-grabbing-box@0.0.6/dist/vue2/index.umd.js"></script> -->
<script src="../../dist/vue2/index.umd.js"></script>
</head>
<body>
  <div id="app">
  </div>
  
  <script>
    window.addEventListener('load', () => {
      console.log(window.GrabbingBox)
      Vue.use(GrabbingBox)
      console.log('grabbing box', GrabbingBox)

      var app = new Vue({
        el: '#app',
        data: {
          message: 'Hello Vue!'
        },
        components: {
          // GrabbingBox: GrabbingBox.GrabbingBox,
        },
        template: `
          <grabbing-box scaleButtonsSpaceX="20px" scaleButtonsSpaceY="20px" scale-buttons-position="top right">
            <img src="./play.tailwindcss.com.png" />
          </grabbing-box>
        `
      })
    })
  </script>
</body>
</html>